package com.cq.hd.system.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息通知表
 * </p>
 *
 * @author mYunYu
 * @since 2024-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_notify_msg")
@ApiModel(value="TbNotifyMsgPo对象", description="消息通知表")
public class TbNotifyMsgPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "通知用户id（如果是商户，存商户id，其他都存用户id）")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "角色类型(1-消费者，2-经纪人，3-商家，4-商户)")
    @TableField("role_type")
    private Integer roleType;

    @ApiModelProperty(value = "消息类型")
    @TableField("msg_type")
    private Integer msgType;

    @ApiModelProperty(value = "消息内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "消息状态（1-未读，2-已读）")
    @TableField("msg_state")
    private Integer msgState;

    @ApiModelProperty(value = "通知时间")
    @TableField("notify_time")
    private LocalDateTime notifyTime;

    @ApiModelProperty(value = "已读时间")
    @TableField("read_time")
    private LocalDateTime readTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;


}
